-- GENERATED SPELL FOR [Scourged Footman] --


function spell0_25981(pUnit, Event) --@Blade Flurry,Self--
pUnit:FullCastSpellOnTarget(33735,pUnit)
pUnit:RegisterEvent('Sorts_25981', 15293, 1)
end

function spell1_25981(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25981', 5307, 1)
end

function Sorts_25981(pUnit, Event)
local choix_sorts_25981 = math.random(0, 1)
if choix_sorts_25981 == 0 then
pUnit:RegisterEvent('spell0_25981', 1, 1)
end
if choix_sorts_25981 == 1 then
pUnit:RegisterEvent('spell1_25981', 1, 1)
end
end

function mob25981_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25981', math.random(1500, 3000), 1)
end

function mob25981_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25981_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25981_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25981, 1, 'mob25981_Action')
RegisterUnitEvent(25981, 2, 'mob25981_Leave')
RegisterUnitEvent(25981, 3, 'mob25981_Kill')
RegisterUnitEvent(25981, 4, 'mob25981_Die')
